#pragma once

//base class
#include "Controller.h"

//Control the time using the video fps
class FrameTimeController : public Controller<float>
{
public:
	//flag for the first update
	bool				m_first;

	//video fps
	int					m_numberOfFramePerSecond;

	//the current time in milliseconds
	float				m_currentTime;

	//the ID (0 based) of the first frame (use to offset time)
	unsigned int		m_firstFrameID;
	
public:

	//constructor
	FrameTimeController();

	//destructor
	~FrameTimeController();

private:
	//update the controller
	void doUpdate();
};